package com.chinasofti.etc.alcohol.service;

import com.chinasofti.etc.alcohol.dao.model.Commodity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinasofti.etc.alcohol.service.info.TypeInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lucas
 * @since 2019-05-29
 */
public interface ICommodityService extends IService<Commodity> {


    List<Commodity> toOne();

    List<Commodity> newSorting();

    List<Commodity> salesRanking(String name);

    List<Commodity> getBrand(TypeInfo typeInfo);

    Integer getCount(TypeInfo typeInfo);

    Commodity getInfo(String commodityNumber);
}
